int x = 0;
if (fileName.endsWith("-ext/build.xml")) {
x = fileName.indexOf("ext/");
if (x == -1) {
x = 0;
}
else {
int x = 0;
if (fileName.endsWith("-ext/build.xml")) {
if (fileName.startsWith("ext/")) {
x = 4;
}
}